<?php
namespace Transform;


class GoodsCommentTransform extends Transform
{
    public function withoutGoods()
    {
        return [
            'allows' => ['id', 'user_id', 'body', 'create_time', 'pics', 'user', 'human_time'],
            'user' => ['trans' => ['name' => 'User', 'method' => 'pub']],
        ];
    }

    public function detail()
    {
        return [
            'allows' => ['id', 'user_id', 'goods', 'body', 'create_time', 'pics', 'goods', 'user', 'human_time'],
            'user' => ['trans' => ['name' => 'User', 'method' => 'pub']],
        ];
    }

}
